import Login from '@/views/login.vue'
import My from '@/views/my.vue'
import Register from '@/views/register.vue'
import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', redirect: '/register' },
    {path: '/register',name: 'register',component: Register},
    {path: '/login',name: 'login',component: Login},
    {path: '/my',name: 'my',component: My},
  ],
})

export default router
